package com.jetpackframework.room;


import android.util.Log;

import com.blankj.utilcode.util.ZipUtils;
import com.jetpackframework.ContextUtil;

import java.io.IOException;

public class RoomBackerUtil{

    public static void ZipFolder(String srcFileString, String zipFileString) {
        try {
            ZipUtils.zipFile(srcFileString,zipFileString);
        } catch (IOException e) {
            Log.e("TAG",e.toString());
            e.printStackTrace();
        }
    }
    public static void unZipFolder(String zipFile){
        try {
            ZipUtils.unzipFile(zipFile,"/data/data/"+ ContextUtil.get().getPackageName());
        } catch (IOException e) {
            Log.e("TAG",e.toString());
            e.printStackTrace();
        }
    }
}
